package org.javaboy.demo;

import okhttp3.OkHttpClient;

public class OkHttpClientStaticFactory {

    private static OkHttpClient client;

    static {
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        builder.setConnectTimeout$okhttp(5000);
        builder.setReadTimeout$okhttp(5000);
        client = builder
                .build();
    }

    public static OkHttpClient getInstance() {
        return client;
    }
}
